package com.yami.shop.bean.enums;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 支付账单类型
 * 
 * @author ruoyi
 */
public enum FundType
{
    FreezeCommissionType("01", "冻结认购手续费"),
    FreezePaymentType("02", "冻结货款"),

    UnFreezeCommissionType("03", "解冻手续费"),
    UnFreezePaymentType("04", "解冻的货款"),

    PayCommissionType("05", "支付认购手续费"),
    PayPaymentType("06", "支付货款"),

    TransferDeductionCommissionType("07", "支付发行手续费"),
    TransferPaymentType("08", "划转货款"),

    BackCommissionType("09", "退款手续费"),
    BackPaymentType("10", "退款货款"),
    ;

    private final String code;
    private final String info;

    FundType(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }
    /*
     * 获得所有枚举类型到list
     * @return
     */
    public static List<FundType> getAllToList() {
        List<FundType> list = new ArrayList<>();
        FundType[] values = values();
        Collections.addAll(list, values);
        return list;
    }
}
